project(dbusappletsupport)

find_package(KDE4 REQUIRED)
include (KDE4Defaults)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})

include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )

set(dbusapplet_LIB_SRCS
        dbusappletItem.cpp
)

#kde4_add_library(dbusappletsupport ${dbusapplet_LIB_SRCS})
#add_library(dbusappletlib SHARED ${dbusapplet_LIB_SRCS})
add_library(dbusappletsupport SHARED ${dbusapplet_LIB_SRCS})


target_link_libraries(
   dbusappletsupport
   ${QT_QTCORE_LIBRARY}
)

install(TARGETS dbusappletsupport LIBRARY DESTINATION lib)

########### install files ###############

set(dbusapplet_LIB_INCLUDES
   dbusappletItem.h
)

install(FILES
   ${dbusapplet_LIB_INCLUDES}
   DESTINATION ${INCLUDE_INSTALL_DIR}/dbusapplet COMPONENT Devel
)

